** Replication for "Forcing the President's Hand"  
** Jordan Tama									    
** May 15, 2019										


** Code uses dataset congressional_sanctions_legislation_1983-2014 
** Analysis is basis for descriptive statistics presented in Table 1 and body of paper (pages 12-14)


** Code for descriptive statistics presented in Table 1

** Code for first row of table
use congressional_sanctions_legislation_1983-2014.dta, clear
drop if presidentialopposition==0
tabulate approvedbycongress
tabulate signedbypresident if approvedbycongress==1
tabulate veto if approvedbycongress==1
tabulate presidentdissatisfiedwhenenacted if signedbypresident==1

** Code for second and third rows of table
** When houseorsenateunifiedpartycontrol==1, this represents condition described in second row of table
** When houseorsenateunifiedpartycontrol==0, this represents condition described in third row of table
use congressional_sanctions_legislation_1983-2014.dta, clear
drop if presidentialopposition==0
tabulate houseorsenateunifiedpartycontrol
tabulate approvedbycongress if houseorsenateunifiedpartycontrol==1
tabulate signedbypresident if houseorsenateunifiedpartycontrol==1
tabulate approvedbycongress if houseorsenateunifiedpartycontrol==0
tabulate signedbypresident if houseorsenateunifiedpartycontrol==0
drop if houseorsenateunifiedpartycontrol==0
tabulate presidentdissatisfiedwhenenacted if signedbypresident==1
use congressional_sanctions_legislation_1983-2014.dta, clear
drop if presidentialopposition==0
drop if houseorsenateunifiedpartycontrol==1
tabulate presidentdissatisfiedwhenenacted if signedbypresident==1

** Code for fourth and fifth rows of table
use congressional_sanctions_legislation_1983-2014.dta, clear
drop if presidentialopposition==0
tabulate bipartisansupportincongress
tabulate approvedbycongress if bipartisansupportincongress==1
tabulate signedbypresident if bipartisansupportincongress==1
tabulate approvedbycongress if bipartisansupportincongress==0
tabulate signedbypresident if bipartisansupportincongress==0
drop if bipartisansupportincongress==0
tabulate presidentdissatisfiedwhenenacted if signedbypresident==1

** Code for sixth and seventh rows of table
use congressional_sanctions_legislation_1983-2014.dta, clear
drop if presidentialopposition==0
tabulate linkage
tabulate approvedbycongress if linkage==1
tabulate signedbypresident if linkage==1
tabulate approvedbycongress if linkage==0
tabulate signedbypresident if linkage==0
drop if linkage==0
tabulate presidentdissatisfiedwhenenacted if signedbypresident==1
use congressional_sanctions_legislation_1983-2014.dta, clear
drop if presidentialopposition==0
drop if linkage==1
tabulate presidentdissatisfiedwhenenacted if signedbypresident==1


** Code for other descriptive statistics mentioned in body of paper (in section entitled "Patterns in U.S. Sanctions Legislation")
** To avoid redundancy, I only include below code for statistics not presented in Table 1

** Code for descriptive statistics in paragraph beginning "I found that these proposals typically received…"
use congressional_sanctions_legislation_1983-2014.dta, clear
tabulate congressionalvote
tabulate bipartisansupportincongress if congressionalvote==1
tabulate bipartisancosponsorship if congressionalvote==0
tabulate presidentialopposition

** Code for descriptive statistic in paragraph beginning "Moreover, Congress regularly defied the president…"
use congressional_sanctions_legislation_1983-2014.dta, clear
drop if presidentialopposition==0
drop if houseorsenateunifiedpartycontrol==0
tabulate vetooverride if approvedbycongress==1

** Code for descriptive statistics in paragraph beginning "Finally, the data indicate that the president frequently implements"
use congressional_sanctions_legislation_1983-2014.dta, clear
drop if presidentialopposition==0
drop if waiverorcertificationauthority==0
tabulate lawimplemented
tabulate lawimplemented if presidentdissatisfiedwhenenacted
